<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ include file="../common/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>操作员审核</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link href="<s:url value="/css/a.css"/>" type="text/css"
	rel="stylesheet" />
<link href="<s:url value="/css/index.css"/>" type="text/css"

	rel="stylesheet" />
	
<script type="text/javascript"
	src="<c:url value="/js/jquery-1.3.2.js" />"></script>
<script type="text/javascript" src="<c:url value="/js/common.js" />"></script>
<script language="javascript" type="text/javascript"
	src="<c:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>

<style>
　　　
　　　　　a {
	text-decoration: none
}

　　　　　a:hover {
	color: red;
	text-decoration: none
}

a:VISITED {
	color: red;
}
　　


　　　
</style>

<script type="text/javascript">

	$(document).ready(
			function() {
			
			$("#btnCheck").click(
						function() {
							var dd = $("input[name=multi_sel]:checked");
							if(dd.length != 1){
								alert("请选择一个操作员进行审核");
								return false;
							}
							var id = dd.val();
							if(id){
								$("#operatorsForm").attr("action",
								"${rootPath}/check/operatorCheckInfo.ct");
								//alert($("#operatorsForm").attr("action"));
							}else{
								alert("请选择需要审核的操作员");
								return false;
							}
							
							
							
						});
			
			});

	
</script>



</head>

<body>

	<div class="subpage">
		<s:form id="operatorsForm" action="/check/queryOperatorCheckYJ.ct" method="post"
			theme="simple">
			<div class="user_title">
				<h2 class="headline-inquires">
					POS收单运营管理平台<br />
					<span class="sub-title"></span>
				</h2>
			</div>
			<table width="100%" cellpadding="0" cellspacing="0" border="0"
				class="query_table">

				<tr>
					<td colspan="6" align="center">
						<h2 class="headline-inquires">
							操作员审核<br />
							<span class="sub-title"></span>
						</h2>

					</td>
				</tr>


				<tr>
					<td colspan="6">&nbsp;</td>
				</tr>

				<tr>
							
						<td width="15%" align="right">角色：</td>
						<td>
						<s:if test="#session.session_merchant.roleType==\"03\"||#session.session_merchant.roleType==\"16\"">
						  	<s:select cssClass="queryWidth" name="searchCondition.roleType"
								id="roleType"
								list="#request.roleTypes" listKey="key" listValue="value"/>
						 
						</s:if>
						<s:else>
						  	<s:select cssClass="queryWidth" name="searchCondition.roleType"
								id="roleType"
								list="#request.roleTypes" listKey="key" listValue="value"  headerKey="99"
								headerValue="--请选择--"/>
						
						</s:else>
					
						</td>
						
					
					<td align="right">操作员账号：</td>
					<td align="left" colspan="1"><s:textfield id="accountNo"
							name="searchCondition.accountNo" cssClass="queryWidth" /></td>
							
					<s:if test="#session.session_merchant.roleType==\"03\"||#session.session_merchant.roleType==\"16\"">
					    <td align="right" width="15%"></td>
					    <td>
					      <s:hidden name="searchCondition.orgCode" value="%{#session.session_merchant.orgCode}"/>
					    </td>
					</s:if>
					<s:else>
					     <td align="right" width="15%">所属机构：</td>
						<td>
							<s:if test="#session.session_merchant.roleType==\"00\"||#session.session_merchant.roleType==\"01\"">
								<s:select cssClass="queryWidth" name="searchCondition.orgCode" id="orgCode"
								list="#request.orgList" listKey="org_code" listValue="org_name" headerKey="99"
								headerValue="--请选择--" />
							</s:if>
							<s:else>
								<s:select cssClass="queryWidth" name="searchCondition.orgCode" id="orgCode"
								list="#request.orgList" listKey="org_code" listValue="org_name" />
							</s:else>
						</td>		
					
					
					</s:else>
							
						</tr>
				<tr><td align="right">操作员姓名：</td>
					<td align="left" colspan="1"><s:textfield id="realName"
							name="searchCondition.realName" cssClass="queryWidth" /></td>
				
					<td align="right">手机号：</td>
					<td align="left" colspan="1"><s:textfield id="mobile"
							name="searchCondition.mobile" cssClass="queryWidth" /></td>
					<td align="right">证件号：</td>
					<td align="left" colspan="1"><s:textfield id="cardNo"
							name="searchCondition.cardNo" cssClass="queryWidth" /></td>
				</tr>
				
				<tr>
						<td colspan="4" align="center"><span style="font-color: red"><s:actionerror /></span>
							<span style="font-color: red;"><s:actionmessage /></span > <span style="font-color: red;"><s:fielderror
									cssClass="fieldError" /></span>
							<span id="otherError"></span>
						</td>
					</tr>
					<tr>
					<td colspan="6">&nbsp;</td>
				</tr>
				<tr>
					<td colspan="6" align="center"><s:submit value="查   询" />
						&nbsp;&nbsp;&nbsp;&nbsp; <s:reset value="取  消" />&nbsp;&nbsp;&nbsp;&nbsp; 
				
					<s:if
					 test="#request.searchRsList != null && #request.searchRsList.size>0">
					   		<s:submit id="btnCheck" 
							value="审核" />&nbsp;&nbsp;&nbsp;&nbsp;
					   
					</s:if>
					<s:else>
					 	<s:submit id="btnCheck" disabled="true"
							value="审核" /> &nbsp;&nbsp;&nbsp;&nbsp;
					</s:else>
					</td>
				</tr>

				<tr>
					<td colspan="6">&nbsp;</td>
				</tr>
			</table>
			<table width="100%" cellpadding="0" cellspacing="0" border="0">

				<tr>
					<td colspan="4" align="center">
						<h2 class="headline-inquires">操作员基本信息列表</h2>

					</td>
				</tr>
				<s:if
					test="#request.searchRsList != null && #request.searchRsList.size>0">
					<tr>
						<td align="left">&nbsp;&nbsp;&nbsp;&nbsp; <page:pageCount
								max_pages="11" totalPage="${requestScope.totalPage}"
								currentPage="${requestScope.currentPage}"
								action="/check/queryOperatorCheckYJ.ct?currentPage=" />

						</td>
					</tr>
				</s:if>
			</table>
			<table id="tableList" width="100%" class="table">
				<thead>
					<tr>
						<th>选择</th>
						<th>账号</th>
						<th>姓名</th>
						<th>性别</th>
						<th>手机号</th>
						<th>所属机构</th>
						<th>角色类型</th>
						<th>证件号</th>
						<th>状态</th>
					</tr>
				</thead>
				<tbody>
					<s:iterator value="#request.searchRsList" status="stat" id="element">
							<tr class="<s:if test="#stat.index%2==0">tr_0</s:if>" >
							<td align="center">
							    <s:if test="#session.session_merchant.id==#element.id">
					        	      <s:checkboxlist disabled="true" name="multi_sel" list="#{#element.id:''}"  theme="simple" />
					        	</s:if>
					        	<s:else>
					        	 <s:checkboxlist  name="multi_sel" list="#{#element.id:''}"  theme="simple" />
					        
					        	</s:else>
						     </td>
							<td>
							 <s:property value="#element.accountNo"/>
							</td>
							<td>
							<s:property value="#element.realName"/>
							</td>
							<td> 
							<s:if test="#element.sex==1">男</s:if>
					        <s:elseif test="#element.sex==0">女</s:elseif>
					        <s:else></s:else>
					        </td>
							<td> 
					        <s:property value="#element.mobile"/>
							</td>
							<td> 
					        <s:property value="#element.orgName"/>
							</td>
							<td> 
					        <s:property value="#element.roleName"/>
							</td>
							<td> 
					        <s:property value="#element.cardNo"/>
							</td>
							<td> 
							 <s:if test="#element.status=='00'">正常</s:if>
							 <s:elseif test="#element.status=='01'">待审核</s:elseif>
							 <s:elseif test="#element.status=='02'">注销</s:elseif>
							 <s:elseif test="#element.status=='03'">待复审</s:elseif>
							</td>
						</s:iterator>
				</tbody>
			</table>
		</s:form>
	</div>
	
</body>
</html>
